<?php
/**
 * @return
 * @author 朱乐斌
 * @date
 */

namespace app\api\validate;
use think\Validate;

class registerCodeValidate extends Validate
{

    // 验证规则
    protected $rule = [
        'mobile' => 'require|mobile',
    ];

    // 验证提示
    protected $message = [
        'mobile.require' => '手机号不能为空',
        'mobile.mobile' => '手机号格式不正确',
    ];

    // 验证场景
    protected $scene = [
        'registerCode' => 'mobile',
    ];


}